var apiHost = wx.getStorageSync('apiHost');   //调用接口请求地址
var yunId  = wx.getStorageSync('yunId');                //云id
var openId  = wx.getStorageSync('openId');              //openId


Page({
    data:{
      isChecked : "",
      hiddenLoading: true,    //loading
    },
    onLoad : function (options) {
        var acceptType = options.acceptType;
        this.setData({
            isChecked : acceptType
        })
    },
    radioChange: function(e) {

        //显示加载动画
        this.setData({
            hiddenLoading: false
        });

        var that = this;

        if(e.detail.value==1){
            that.setData({
                isChecked : "1"
            })
        }else{
            that.setData({
                isChecked : "0"
            })
        }

        wx.navigateTo({
            url: '../shopSetUp/shopSetUp?acceptType='+that.data.isChecked
        })

    },
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {
        //显示加载动画
        this.setData({
            hiddenLoading: true
        });
    },
});